Skip to content

Conversation

@sajjadazimi
Copy link
Member

@sajjadazimi sajjadazimi commented Nov 14, 2025

Purpose

This PR updates the treatment of boundary conditions for prognostic EDMF:
1- Apply surface fluxes to both grid-mean and updraft fields equally.
2- Seed a small updraft area fraction in the first cell when the surface buoyancy flux is positive, allowing it to grow even if initially zero.
3- Instead of overwriting the first-cell area fraction, increase the entrainment rate when buoyancy flux is positive, ensuring the area reaches the prescribed value in one timestep. This ensures that tracer masses are conserved.
4- Instead of overwriting mse and q_tot, assume a near-surface entrainment in the first cell, with tracer values of the entraining fluid provided by the function sgs_scalar_first_interior_bc (mean + perturbation).

Content


  • I have read and checked the items on the review checklist.

@sajjadazimi sajjadazimi force-pushed the sa/consistent_edmf_bcs branch 5 times, most recently from 19ec0c3 to 11d17bb Compare November 18, 2025 05:24
@sajjadazimi sajjadazimi changed the title PEDMF boundary conditions pedmf boundary conditions Nov 25, 2025
@sajjadazimi sajjadazimi force-pushed the sa/consistent_edmf_bcs branch from d2f7de0 to ded9fa3 Compare November 25, 2025 01:45
@sajjadazimi sajjadazimi requested review from szy21 and tapios November 25, 2025 02:07
Copy link
Member

@tapios tapios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. It'll be good to see how well this work across a range of SCM simulations. This PR looks conceptually and code-wise fine to me.

@sajjadazimi sajjadazimi force-pushed the sa/consistent_edmf_bcs branch from 8ed26d2 to e39b09b Compare November 25, 2025 15:37
@sajjadazimi sajjadazimi force-pushed the sa/consistent_edmf_bcs branch from 81719ea to e1f8497 Compare November 26, 2025 06:42
@sajjadazimi sajjadazimi force-pushed the sa/consistent_edmf_bcs branch from e1f8497 to 8fcc7b8 Compare November 26, 2025 06:53
@sajjadazimi sajjadazimi added this pull request to the merge queue Nov 26, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 26, 2025
@sajjadazimi sajjadazimi added this pull request to the merge queue Nov 26, 2025
Merged via the queue into main with commit a2b15aa Nov 26, 2025
18 of 19 checks passed
@sajjadazimi sajjadazimi deleted the sa/consistent_edmf_bcs branch November 26, 2025 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants